﻿; (function () {

    'use strict';

    // faster than jquery 
    window.DomHelper = window.DomHelper || {};

    //(+50%)
    DomHelper.removeClass = function (elms, className) {
        for (var i = 0; i < elms.length; i++) {
            elms[i].classList.remove(className);
        }
    }

    DomHelper.toggleClassName = function (ele, className, statement) {
        var classList = ele.className.split(" ");
        var index = classList.indexOf(className);
        if (statement && index === -1) {
            ele.className += " " + className;
        }
        if (!statement && index !== -1) {
            classList.splice(index, 1);
            ele.className = classList.join(" ");
        }
    }

}(window));
